<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--       
*     Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
*     Use is subject to license terms.
-->
<html>
<head>
	<title>Editing a JavaFX Source File</title>
<link href="nbdocs:/org/netbeans/modules/usersguide/ide.css"  rel="stylesheet" type="text/css">
</head>
<body>
<h2>Editing  JavaFX Source Files</h2>
<p> <small><a href="#seealso">See Also</a></small> 


<p>The IDE provides the following features for editing and navigating source files written in the JavaFX Script programming language: 
<ul>
<li><b>Syntax highlighting. </b></li>
<li><b>Error detection.</b></li>
<li><b>Indentation and reformatting.</b> The IDE indents lines as you type. You can format selected lines or the entire file by pressing Alt-Shift-F.</li>
<li><b>Code completion.</b> As you type or after you press Ctrl-Space, a dialog box appears and displays the possible ways to complete the JavaFX expression you are typing. Select from the list and view the Javadoc entry for that current selection. Navigate to the correct  selection and press Enter to complete the expression. </li>
<li><b>Code folding.</b> Enables you to hide or display code blocks in the source file. </li>
<li><b>Fix Imports.</b> Generates the import statements required by the classes specified in the file. Right-click anywhere in the source file and select Fix Imports (Ctrl-Shift-I).</li>
<li><b>Go to Declaration.</b> Allows you to jump to the declaration of the item under the cursor. </li>
<li><b>Go to Source.</b>  Displays the source file containing the definition of the selected class.</li>
<li><b>Palette.</b> The Palette provides code clips that you can drag and drop into a JavaFX source file that is currently opened in the editor.</li>
<li><b>Preview. </b> Using the JavaFX preview feature, view the effects of the edits you make to the current source file.</li>
</ul>
<p><b>To open a JavaFX source file in the Source Editor: </b></p>
<ul>
<li>Double-click the JavaFX source file's node in the Projects window.</li>
</ul>
<p><b>To view a JavaFX source file in the Navigator window: </b></p>
<ul>
<li>Select the JavaFX source file's node in the Projects window and the navigator displays the different parts of the file.</li>
</ul>
<p><b>To enable  and disable the preview feature:</b></p>
<ul>
  <li>Click the Preview button <img src="../images/preview.png" alt="Enable preview button" width="16" height="16"> on the editor's toolbar.</li>
</ul>
<p>The editor toolbar also provides buttons for other editor commands available for the currently displayed source file. For a description of these buttons, see <a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/editing/csh/java_editor_toolbar.html">Editor Toolbar</a>. </p>
<p></p>
<dl>
<dt><a name="seealso">See Also</a></dt>
<dd><a href="../about_javafx.html">About JavaFX Applications </a></dd>
<dd><a href="../project/javafx_proj_process.html">Working With JavaFX Projects </a></dd>
<dd><a href="csh/javafx_nav_window.html">Navigator Window (JavaFX Projects) </a></dd>
<dd><a href="using_javafxpreview.html">Using the JavaFX Preview Feature</a></dd>
<dd><a href="about_javafx_palette.html">About the JavaFX Palette</a></dd>
<dd><a href="../configure/javafx_options.html">Customizing JavaFX Syntax Settings</a></dd>
</dl>

<hr>
<p><font size=-2><a href="../credits.html">Legal Notices</a></font>
</p>
<table cellpadding="50" border="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

</body>
</html>
